'''
hashlib的使用
'''
import hashlib

pw = '2134531'
md5 = hashlib.md5()
md5.update(pw.encode())
re = md5.hexdigest()
print(re)

sha256 = hashlib.sha256()
sha256.update(pw.encode())
re = sha256.hexdigest()
print(re)
